package com.zh.config.db

/**
 * Storage for [DownloadDao].
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
interface DownloadStorage {
    fun put(url: String, sourceInfo: DownloadDao)
    fun getDownload(url: String): DownloadDao?
    fun getAllDownload(): List<DownloadDao>?
    fun count(): Int
    fun remove(url: String, time: Int)
    fun removeAll()
    fun release()
}